import { PrismaClient } from "@prisma/client";

import { seedArticle } from "./article.seed";

const prisma = new PrismaClient();
async function main() {
    // await seedFileDirectory(prisma);
    // await seedHotlist(prisma);
    // await seedCategories(prisma);
    await seedArticle(prisma);
}

main()
    .then(async () => {
        await prisma.$disconnect();
    })
    .catch(async e => {
        console.error(e);
        await prisma.$disconnect();
        process.exit(1);
    });
